
/*
'===============================================================================
'  MP.LayerHelper.MP_OBS.BL.AspnetApplicationsManager
'===============================================================================
*/

using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using MP.LayerHelper.MP_OBS.BLL;
using MP.LayerHelper.MP_OBS.DAL;
using MP.LayerHelper.MP_OBS.DAL.EntityClasses;
using MP.LayerHelper.MP_OBS.DAL.FactoryClasses;
using MP.LayerHelper.MP_OBS.DAL.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;

namespace MP.LayerHelper.MP_OBS.BLL
{
	public class AspnetApplicationsManager : AspnetApplicationsManagerBase
	{
		/// <summary>
		/// Purpose: Class constructor.
		/// </summary>
		public AspnetApplicationsManager()
		{
			// Nothing for now.
		}
		
		/// <summary>
		/// Method to create an instance of AspnetApplicationsManager
		/// </summary>
		/// <returns>An instant of AspnetApplicationsManager class</returns>
		public static AspnetApplicationsManager CreateInstant()
		{
			return new AspnetApplicationsManager();
		}

        public Guid GetApplicationId(string applicationname)
        {
            EntityCollection<AspnetApplicationsEntity> items = SelectByApplicationNameLST(applicationname);
            if (items != null && items.Count > 0)
                return items[0].ApplicationId;
            return Guid.Empty;
        }
	}
}
